package ServerSide.Tests.Threads;

import Mocks.MockAction;
import Mocks.MockClientSocket;
import Mocks.MockGameServer;
import harima.AGameServer.ServerSide.Threads.HandleClientThread;
import junit.framework.TestCase;

public class HandleClientThreadFixture extends TestCase{
	
	
	HandleClientThread thread;
	MockGameServer server;
	MockClientSocket client;
	
	@Override
	protected void setUp() throws Exception {
		server = new MockGameServer();
		client = new MockClientSocket();
		thread = new HandleClientThread(client, server);
	}
	
	public void test_ExecutesAction_ActionReceivedFromClient_Always() throws Exception {
		MockAction action = new MockAction();
		thread.executeAction(action);
		//assertEquals(1, action.CCExecute);
		//assertSame(server, action.LastServer);
		//assertSame(client, action.LastClient);
		//assertSame(thread, action.LastThread);
		
	}
}
